home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1997-07-01 | 4.5 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Tue Jul 1 14:05:40 1997, modified Tue Jul 1 14:05:40 1997, creator 'CWIE', type ASCII, 3976 bytes "Sliders.c" , at 0x1008 286 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 53 6c 69 64 65 72 | 73 2e 63 00 00 00 00 00 |..Slider|s.c.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0f 88 00 | 00 01 1e af de f7 74 af |........|......t.|
|00000060| de f7 74 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..t.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 82 cd 00 00 |........|........|
|00000080| 2f 2a 20 53 6c 69 64 65 | 72 73 2e 63 20 2a 2f 0d |/* Slide|rs.c */.|
|00000090| 2f 2a 20 43 72 65 61 74 | 65 64 20 36 2f 31 30 2f |/* Creat|ed 6/10/|
|000000a0| 39 37 20 31 32 3a 32 34 | 20 50 4d 20 62 79 20 41 |97 12:24| PM by A|
|000000b0| 70 70 4d 61 6b 65 72 20 | 2a 2f 0d 0d 23 69 6e 63 |ppMaker |*/..#inc|
|000000c0| 6c 75 64 65 20 3c 54 79 | 70 65 73 2e 68 3e 0d 23 |lude <Ty|pes.h>.#|
|000000d0| 69 6e 63 6c 75 64 65 20 | 3c 51 75 69 63 6b 64 72 |include |<Quickdr|
|000000e0| 61 77 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |aw.h>.#i|nclude <|
|000000f0| 43 6f 6e 74 72 6f 6c 73 | 2e 68 3e 0d 23 69 6e 63 |Controls|.h>.#inc|
|00000100| 6c 75 64 65 20 3c 44 69 | 61 6c 6f 67 73 2e 68 3e |lude <Di|alogs.h>|
|00000110| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 45 76 65 6e 74 |.#includ|e <Event|
|00000120| 73 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 4c |s.h>.#in|clude <L|
|00000130| 69 73 74 73 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |ists.h>.|#include|
|00000140| 20 3c 4d 65 6e 75 73 2e | 68 3e 0d 23 69 6e 63 6c | <Menus.|h>.#incl|
|00000150| 75 64 65 20 3c 52 65 73 | 6f 75 72 63 65 73 2e 68 |ude <Res|ources.h|
|00000160| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 54 65 78 74 |>.#inclu|de <Text|
|00000170| 45 64 69 74 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |Edit.h>.|#include|
|00000180| 20 3c 54 6f 6f 6c 55 74 | 69 6c 73 2e 68 3e 0d 23 | <ToolUt|ils.h>.#|
|00000190| 69 6e 63 6c 75 64 65 20 | 22 52 65 73 6f 75 72 63 |include |"Resourc|
|000001a0| 65 44 65 66 73 2e 68 22 | 0d 23 69 6e 63 6c 75 64 |eDefs.h"|.#includ|
|000001b0| 65 20 22 47 6c 6f 62 61 | 6c 73 2e 68 22 0d 23 69 |e "Globa|ls.h".#i|
|000001c0| 6e 63 6c 75 64 65 20 22 | 4d 69 73 63 65 6c 6c 61 |nclude "|Miscella|
|000001d0| 6e 79 2e 68 22 0d 23 69 | 6e 63 6c 75 64 65 20 22 |ny.h".#i|nclude "|
|000001e0| 53 63 72 6f 6c 6c 69 6e | 67 2e 68 22 0d 23 69 6e |Scrollin|g.h".#in|
|000001f0| 63 6c 75 64 65 20 22 57 | 69 6e 64 6f 77 41 69 64 |clude "W|indowAid|
|00000200| 73 2e 68 22 0d 23 69 6e | 63 6c 75 64 65 20 22 47 |s.h".#in|clude "G|
|00000210| 61 64 67 65 74 73 44 61 | 74 61 2e 68 22 0d 23 69 |adgetsDa|ta.h".#i|
|00000220| 6e 63 6c 75 64 65 20 22 | 53 6c 69 64 65 72 73 2e |nclude "|Sliders.|
|00000230| 68 22 0d 0d 0d 23 64 65 | 66 69 6e 65 20 56 65 72 |h"...#de|fine Ver|
|00000240| 74 69 63 61 6c 53 63 72 | 6f 6c 6c 09 09 31 0d 23 |ticalScr|oll..1.#|
|00000250| 64 65 66 69 6e 65 20 53 | 6c 69 64 65 72 53 63 72 |define S|liderScr|
|00000260| 6f 6c 6c 09 09 32 0d 23 | 64 65 66 69 6e 65 20 53 |oll..2.#|define S|
|00000270| 70 69 6e 6e 65 72 53 63 | 72 6f 6c 6c 09 09 33 0d |pinnerSc|roll..3.|
|00000280| 23 64 65 66 69 6e 65 20 | 48 6f 72 69 7a 6f 6e 74 |#define |Horizont|
|00000290| 61 6c 53 63 72 6f 6c 6c | 09 09 34 0d 23 64 65 66 |alScroll|..4.#def|
|000002a0| 69 6e 65 20 50 69 63 74 | 53 6c 69 64 65 72 53 63 |ine Pict|SliderSc|
|000002b0| 72 6f 6c 6c 09 09 35 0d | 0d 0d 2f 2a 2d 2d 2d 2d |roll..5.|../*----|
|000002c0| 2d 2d 2d 2d 2d 2d 2a 2f | 0d 76 6f 69 64 20 4f 70 |------*/|.void Op|
|000002d0| 65 6e 53 6c 69 64 65 72 | 73 09 28 46 53 53 70 65 |enSlider|s.(FSSpe|
|000002e0| 63 2a 09 66 69 6c 65 53 | 70 65 63 2c 0d 09 09 09 |c*.fileS|pec,....|
|000002f0| 09 09 09 20 73 68 6f 72 | 74 09 09 66 52 65 66 4e |... shor|t..fRefN|
|00000300| 75 6d 29 0d 7b 0d 09 57 | 69 6e 64 6f 77 50 74 72 |um).{..W|indowPtr|
|00000310| 09 09 6e 65 77 57 69 6e | 64 6f 77 3b 0d 09 52 65 |..newWin|dow;..Re|
|00000320| 63 74 09 09 09 62 6f 75 | 6e 64 73 3b 0d 0d 09 6e |ct...bou|nds;...n|
|00000330| 65 77 57 69 6e 64 6f 77 | 20 3d 20 47 65 74 57 69 |ewWindow| = GetWi|
|00000340| 6e 64 6f 77 20 28 57 49 | 4e 44 5f 53 6c 69 64 65 |ndow (WI|ND_Slide|
|00000350| 72 73 29 3b 0d 09 69 66 | 20 28 66 69 6c 65 53 70 |rs);..if| (fileSp|
|00000360| 65 63 2d 3e 6e 61 6d 65 | 20 5b 30 5d 20 21 3d 20 |ec->name| [0] != |
|00000370| 30 29 20 7b 0d 09 09 53 | 65 74 57 54 69 74 6c 65 |0) {...S|etWTitle|
|00000380| 20 28 6e 65 77 57 69 6e | 64 6f 77 2c 20 66 69 6c | (newWin|dow, fil|
|00000390| 65 53 70 65 63 2d 3e 6e | 61 6d 65 29 3b 0d 09 7d |eSpec->n|ame);..}|
|000003a0| 0d 09 53 65 74 50 6f 72 | 74 20 28 6e 65 77 57 69 |..SetPor|t (newWi|
|000003b0| 6e 64 6f 77 29 3b 0d 09 | 53 65 74 4e 65 77 49 6e |ndow);..|SetNewIn|
|000003c0| 66 6f 20 28 6e 65 77 57 | 69 6e 64 6f 77 29 3b 0d |fo (newW|indow);.|
|000003d0| 09 63 75 72 2d 3e 76 53 | 63 72 6f 6c 6c 20 3d 20 |.cur->vS|croll = |
|000003e0| 6e 69 6c 3b 0d 09 63 75 | 72 2d 3e 68 53 63 72 6f |nil;..cu|r->hScro|
|000003f0| 6c 6c 20 3d 20 6e 69 6c | 3b 0d 09 63 75 72 2d 3e |ll = nil|;..cur->|
|00000400| 66 69 6c 65 4e 75 6d 09 | 3d 20 66 52 65 66 4e 75 |fileNum.|= fRefNu|
|00000410| 6d 3b 0d 09 63 75 72 2d | 3e 64 69 72 74 79 09 09 |m;..cur-|>dirty..|
|00000420| 3d 20 66 61 6c 73 65 3b | 0d 09 63 75 72 2d 3e 66 |= false;|..cur->f|
|00000430| 69 6c 65 6e 61 6d 65 09 | 3d 20 4e 65 77 53 74 72 |ilename.|= NewStr|
|00000440| 69 6e 67 20 28 66 69 6c | 65 53 70 65 63 2d 3e 6e |ing (fil|eSpec->n|
|00000450| 61 6d 65 29 3b 0d 09 63 | 75 72 2d 3e 77 69 6e 64 |ame);..c|ur->wind|
|00000460| 6f 77 4b 69 6e 64 20 3d | 20 57 53 6c 69 64 65 72 |owKind =| WSlider|
|00000470| 73 3b 0d 09 28 28 57 69 | 6e 64 6f 77 50 65 65 6b |s;..((Wi|ndowPeek|
|00000480| 29 20 63 75 72 57 69 6e | 64 6f 77 29 2d 3e 77 69 |) curWin|dow)->wi|
|00000490| 6e 64 6f 77 4b 69 6e 64 | 20 3d 20 75 73 65 72 4b |ndowKind| = userK|
|000004a0| 69 6e 64 20 2b 20 57 53 | 6c 69 64 65 72 73 3b 0d |ind + WS|liders;.|
|000004b0| 09 63 75 72 2d 3e 77 69 | 74 6c 48 61 6e 64 6c 65 |.cur->wi|tlHandle|
|000004c0| 20 3d 20 47 65 74 52 65 | 73 6f 75 72 63 65 20 28 | = GetRe|source (|
|000004d0| 27 57 69 74 6c 27 2c 20 | 57 49 4e 44 5f 53 6c 69 |'Witl', |WIND_Sli|
|000004e0| 64 65 72 73 29 3b 0d 09 | 63 75 72 2d 3e 77 69 63 |ders);..|cur->wic|
|000004f0| 74 48 61 6e 64 6c 65 20 | 3d 20 47 65 74 52 65 73 |tHandle |= GetRes|
|00000500| 6f 75 72 63 65 20 28 27 | 57 69 63 74 27 2c 20 57 |ource ('|Wict', W|
|00000510| 49 4e 44 5f 53 6c 69 64 | 65 72 73 29 3b 0d 0d 09 |IND_Slid|ers);...|
|00000520| 63 75 72 2d 3e 56 65 72 | 74 69 63 61 6c 48 61 6e |cur->Ver|ticalHan|
|00000530| 64 6c 65 20 3d 20 47 65 | 74 4e 65 77 43 6f 6e 74 |dle = Ge|tNewCont|
|00000540| 72 6f 6c 20 28 43 4e 54 | 4c 5f 56 65 72 74 69 63 |rol (CNT|L_Vertic|
|00000550| 61 6c 2c 20 6e 65 77 57 | 69 6e 64 6f 77 29 3b 0d |al, newW|indow);.|
|00000560| 09 63 75 72 2d 3e 53 6c | 69 64 65 72 48 61 6e 64 |.cur->Sl|iderHand|
|00000570| 6c 65 20 3d 20 47 65 74 | 4e 65 77 43 6f 6e 74 72 |le = Get|NewContr|
|00000580| 6f 6c 20 28 43 4e 54 4c | 5f 53 6c 69 64 65 72 2c |ol (CNTL|_Slider,|
|00000590| 20 6e 65 77 57 69 6e 64 | 6f 77 29 3b 0d 09 63 75 | newWind|ow);..cu|
|000005a0| 72 2d 3e 53 70 69 6e 6e | 65 72 48 61 6e 64 6c 65 |r->Spinn|erHandle|
|000005b0| 20 3d 20 47 65 74 4e 65 | 77 43 6f 6e 74 72 6f 6c | = GetNe|wControl|
|000005c0| 20 28 43 4e 54 4c 5f 53 | 70 69 6e 6e 65 72 2c 20 | (CNTL_S|pinner, |
|000005d0| 6e 65 77 57 69 6e 64 6f | 77 29 3b 0d 09 63 75 72 |newWindo|w);..cur|
|000005e0| 2d 3e 48 6f 72 69 7a 6f | 6e 74 61 6c 48 61 6e 64 |->Horizo|ntalHand|
|000005f0| 6c 65 20 3d 20 47 65 74 | 4e 65 77 43 6f 6e 74 72 |le = Get|NewContr|
|00000600| 6f 6c 20 28 43 4e 54 4c | 5f 48 6f 72 69 7a 6f 6e |ol (CNTL|_Horizon|
|00000610| 74 61 6c 2c 20 6e 65 77 | 57 69 6e 64 6f 77 29 3b |tal, new|Window);|
|00000620| 0d 09 63 75 72 2d 3e 50 | 69 63 74 53 6c 69 64 65 |..cur->P|ictSlide|
|00000630| 72 48 61 6e 64 6c 65 20 | 3d 20 47 65 74 4e 65 77 |rHandle |= GetNew|
|00000640| 43 6f 6e 74 72 6f 6c 20 | 28 43 4e 54 4c 5f 50 69 |Control |(CNTL_Pi|
|00000650| 63 74 53 6c 69 64 65 72 | 2c 20 6e 65 77 57 69 6e |ctSlider|, newWin|
|00000660| 64 6f 77 29 3b 0d 0d 09 | 63 75 72 2d 3e 74 65 78 |dow);...|cur->tex|
|00000670| 74 20 3d 20 6e 69 6c 3b | 0d 09 53 68 6f 77 57 69 |t = nil;|..ShowWi|
|00000680| 6e 64 6f 77 20 28 6e 65 | 77 57 69 6e 64 6f 77 29 |ndow (ne|wWindow)|
|00000690| 3b 0d 7d 20 2f 2a 4f 70 | 65 6e 53 6c 69 64 65 72 |;.} /*Op|enSlider|
|000006a0| 73 2a 2f 0d 0d 2f 2a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |s*/../*-|--------|
|000006b0| 2d 2a 2f 0d 76 6f 69 64 | 20 43 6c 6f 73 65 53 6c |-*/.void| CloseSl|
|000006c0| 69 64 65 72 73 09 28 76 | 6f 69 64 29 0d 7b 0d 0d |iders.(v|oid).{..|
|000006d0| 09 44 69 73 70 6f 73 65 | 48 61 6e 64 6c 65 20 28 |.Dispose|Handle (|
|000006e0| 28 48 61 6e 64 6c 65 29 | 20 63 75 72 2d 3e 66 69 |(Handle)| cur->fi|
|000006f0| 6c 65 6e 61 6d 65 29 3b | 0d 09 44 69 73 63 61 72 |lename);|..Discar|
|00000700| 64 49 6e 66 6f 20 28 63 | 75 72 57 69 6e 64 6f 77 |dInfo (c|urWindow|
|00000710| 29 3b 0d 7d 20 2f 2a 43 | 6c 6f 73 65 53 6c 69 64 |);.} /*C|loseSlid|
|00000720| 65 72 73 2a 2f 0d 0d 2f | 2a 2d 2d 2d 2d 2d 2d 2d |ers*/../|*-------|
|00000730| 2d 2d 2d 2a 2f 0d 76 6f | 69 64 20 43 6f 6e 74 72 |---*/.vo|id Contr|
|00000740| 6f 6c 53 6c 69 64 65 72 | 73 20 20 28 43 6f 6e 74 |olSlider|s (Cont|
|00000750| 72 6f 6c 48 61 6e 64 6c | 65 09 09 77 68 69 63 68 |rolHandl|e..which|
|00000760| 43 6f 6e 74 72 6f 6c 2c | 0d 09 09 09 09 09 09 20 |Control,|....... |
|00000770| 73 68 6f 72 74 09 09 09 | 09 77 68 69 63 68 50 61 |short...|.whichPa|
|00000780| 72 74 2c 0d 09 09 09 09 | 09 09 20 50 6f 69 6e 74 |rt,.....|.. Point|
|00000790| 09 09 09 09 77 68 65 72 | 65 29 0d 7b 0d 09 52 65 |....wher|e).{..Re|
|000007a0| 63 74 09 09 09 62 6f 75 | 6e 64 73 3b 0d 0d 09 69 |ct...bou|nds;...i|
|000007b0| 66 20 28 77 68 69 63 68 | 43 6f 6e 74 72 6f 6c 20 |f (which|Control |
|000007c0| 3d 3d 20 63 75 72 2d 3e | 56 65 72 74 69 63 61 6c |== cur->|Vertical|
|000007d0| 48 61 6e 64 6c 65 29 20 | 7b 0d 09 09 54 72 61 63 |Handle) |{...Trac|
|000007e0| 6b 53 63 72 6f 6c 6c 20 | 28 63 75 72 2d 3e 56 65 |kScroll |(cur->Ve|
|000007f0| 72 74 69 63 61 6c 48 61 | 6e 64 6c 65 2c 20 77 68 |rticalHa|ndle, wh|
|00000800| 69 63 68 50 61 72 74 2c | 20 77 68 65 72 65 2c 20 |ichPart,| where, |
|00000810| 6e 69 6c 29 3b 0d 09 7d | 0d 09 69 66 20 28 77 68 |nil);..}|..if (wh|
|00000820| 69 63 68 43 6f 6e 74 72 | 6f 6c 20 3d 3d 20 63 75 |ichContr|ol == cu|
|00000830| 72 2d 3e 53 6c 69 64 65 | 72 48 61 6e 64 6c 65 29 |r->Slide|rHandle)|
|00000840| 20 7b 0d 09 09 54 72 61 | 63 6b 53 63 72 6f 6c 6c | {...Tra|ckScroll|
|00000850| 20 28 63 75 72 2d 3e 53 | 6c 69 64 65 72 48 61 6e | (cur->S|liderHan|
|00000860| 64 6c 65 2c 20 77 68 69 | 63 68 50 61 72 74 2c 20 |dle, whi|chPart, |
|00000870| 77 68 65 72 65 2c 20 6e | 69 6c 29 3b 0d 09 7d 0d |where, n|il);..}.|
|00000880| 09 69 66 20 28 77 68 69 | 63 68 43 6f 6e 74 72 6f |.if (whi|chContro|
|00000890| 6c 20 3d 3d 20 63 75 72 | 2d 3e 53 70 69 6e 6e 65 |l == cur|->Spinne|
|000008a0| 72 48 61 6e 64 6c 65 29 | 20 7b 0d 09 09 54 72 61 |rHandle)| {...Tra|
|000008b0| 63 6b 53 63 72 6f 6c 6c | 20 28 63 75 72 2d 3e 53 |ckScroll| (cur->S|
|000008c0| 70 69 6e 6e 65 72 48 61 | 6e 64 6c 65 2c 20 77 68 |pinnerHa|ndle, wh|
|000008d0| 69 63 68 50 61 72 74 2c | 20 77 68 65 72 65 2c 20 |ichPart,| where, |
|000008e0| 6e 69 6c 29 3b 0d 09 7d | 0d 09 69 66 20 28 77 68 |nil);..}|..if (wh|
|000008f0| 69 63 68 43 6f 6e 74 72 | 6f 6c 20 3d 3d 20 63 75 |ichContr|ol == cu|
|00000900| 72 2d 3e 48 6f 72 69 7a | 6f 6e 74 61 6c 48 61 6e |r->Horiz|ontalHan|
|00000910| 64 6c 65 29 20 7b 0d 09 | 09 54 72 61 63 6b 53 63 |dle) {..|.TrackSc|
|00000920| 72 6f 6c 6c 20 28 63 75 | 72 2d 3e 48 6f 72 69 7a |roll (cu|r->Horiz|
|00000930| 6f 6e 74 61 6c 48 61 6e | 64 6c 65 2c 20 77 68 69 |ontalHan|dle, whi|
|00000940| 63 68 50 61 72 74 2c 20 | 77 68 65 72 65 2c 20 6e |chPart, |where, n|
|00000950| 69 6c 29 3b 0d 09 7d 0d | 09 69 66 20 28 77 68 69 |il);..}.|.if (whi|
|00000960| 63 68 43 6f 6e 74 72 6f | 6c 20 3d 3d 20 63 75 72 |chContro|l == cur|
|00000970| 2d 3e 50 69 63 74 53 6c | 69 64 65 72 48 61 6e 64 |->PictSl|iderHand|
|00000980| 6c 65 29 20 7b 0d 09 09 | 54 72 61 63 6b 53 63 72 |le) {...|TrackScr|
|00000990| 6f 6c 6c 20 28 63 75 72 | 2d 3e 50 69 63 74 53 6c |oll (cur|->PictSl|
|000009a0| 69 64 65 72 48 61 6e 64 | 6c 65 2c 20 77 68 69 63 |iderHand|le, whic|
|000009b0| 68 50 61 72 74 2c 20 77 | 68 65 72 65 2c 20 6e 69 |hPart, w|here, ni|
|000009c0| 6c 29 3b 0d 09 7d 0d 0d | 7d 20 2f 2a 43 6f 6e 74 |l);..}..|} /*Cont|
|000009d0| 72 6f 6c 53 6c 69 64 65 | 72 73 2a 2f 0d 0d 2f 2a |rolSlide|rs*/../*|
|000009e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2a 2f 0d 76 6f 69 |--------|--*/.voi|
|000009f0| 64 20 4d 6f 75 73 65 49 | 6e 53 6c 69 64 65 72 73 |d MouseI|nSliders|
|00000a00| 09 28 50 6f 69 6e 74 09 | 09 77 68 65 72 65 2c 0d |.(Point.|.where,.|
|00000a10| 09 09 09 09 09 09 20 73 | 68 6f 72 74 09 09 6d 6f |...... s|hort..mo|
|00000a20| 64 69 66 69 65 72 73 29 | 0d 7b 0d 09 52 65 63 74 |difiers)|.{..Rect|
|00000a30| 09 09 09 62 6f 75 6e 64 | 73 3b 0d 0d 0d 7d 20 2f |...bound|s;...} /|
|00000a40| 2a 4d 6f 75 73 65 49 6e | 53 6c 69 64 65 72 73 2a |*MouseIn|Sliders*|
|00000a50| 2f 0d 0d 2f 2a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2a |/../*---|-------*|
|00000a60| 2f 0d 76 6f 69 64 20 54 | 79 70 65 49 6e 53 6c 69 |/.void T|ypeInSli|
|00000a70| 64 65 72 73 20 20 20 28 | 63 68 61 72 09 09 63 68 |ders (|char..ch|
|00000a80| 29 0d 7b 0d 09 69 66 20 | 28 28 63 68 20 3d 3d 20 |).{..if |((ch == |
|00000a90| 63 68 61 72 45 6e 74 65 | 72 29 0d 09 7c 7c 20 20 |charEnte|r)..|| |
|00000aa0| 28 63 68 20 3d 3d 20 63 | 68 61 72 52 65 74 75 72 |(ch == c|harRetur|
|00000ab0| 6e 29 29 20 7b 0d 09 7d | 20 65 6c 73 65 20 69 66 |n)) {..}| else if|
|00000ac0| 20 28 63 68 20 3d 3d 20 | 63 68 61 72 45 73 63 29 | (ch == |charEsc)|
|00000ad0| 20 7b 0d 09 7d 20 65 6c | 73 65 20 69 66 20 28 63 | {..} el|se if (c|
|00000ae0| 68 20 3d 3d 20 63 68 61 | 72 54 61 62 29 20 7b 0d |h == cha|rTab) {.|
|00000af0| 09 09 2f 2a 20 74 61 62 | 20 61 6d 6f 6e 67 20 65 |../* tab| among e|
|00000b00| 64 69 74 20 66 69 65 6c | 64 73 20 2a 2f 0d 09 7d |dit fiel|ds */..}|
|00000b10| 20 65 6c 73 65 20 69 66 | 20 28 63 75 72 2d 3e 74 | else if| (cur->t|
|00000b20| 65 78 74 20 3d 3d 20 6e | 69 6c 29 20 7b 0d 09 09 |ext == n|il) {...|
|00000b30| 53 79 73 42 65 65 70 20 | 28 31 29 3b 0d 09 7d 20 |SysBeep |(1);..} |
|00000b40| 65 6c 73 65 20 7b 0d 09 | 09 54 45 4b 65 79 20 28 |else {..|.TEKey (|
|00000b50| 63 68 2c 20 63 75 72 2d | 3e 74 65 78 74 29 3b 0d |ch, cur-|>text);.|
|00000b60| 09 09 63 75 72 2d 3e 64 | 69 72 74 79 20 3d 20 74 |..cur->d|irty = t|
|00000b70| 72 75 65 3b 0d 09 7d 0d | 7d 20 2f 2a 54 79 70 65 |rue;..}.|} /*Type|
|00000b80| 49 6e 53 6c 69 64 65 72 | 73 2a 2f 0d 0d 2f 2a 2d |InSlider|s*/../*-|
|00000b90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2a 2f 0d 76 6f 69 64 |--------|-*/.void|
|00000ba0| 20 55 70 64 61 74 65 53 | 6c 69 64 65 72 73 20 28 | UpdateS|liders (|
|00000bb0| 76 6f 69 64 29 0d 7b 0d | 09 52 65 63 74 09 09 09 |void).{.|.Rect...|
|00000bc0| 62 6f 75 6e 64 73 3b 0d | 0d 09 53 65 74 57 46 6f |bounds;.|..SetWFo|
|00000bd0| 6e 74 20 28 56 65 72 74 | 69 63 61 6c 53 63 72 6f |nt (Vert|icalScro|
|00000be0| 6c 6c 29 3b 0d 09 44 72 | 61 77 31 43 6f 6e 74 72 |ll);..Dr|aw1Contr|
|00000bf0| 6f 6c 20 28 63 75 72 2d | 3e 56 65 72 74 69 63 61 |ol (cur-|>Vertica|
|00000c00| 6c 48 61 6e 64 6c 65 29 | 3b 0d 09 53 65 74 57 46 |lHandle)|;..SetWF|
|00000c10| 6f 6e 74 20 28 53 6c 69 | 64 65 72 53 63 72 6f 6c |ont (Sli|derScrol|
|00000c20| 6c 29 3b 0d 09 44 72 61 | 77 31 43 6f 6e 74 72 6f |l);..Dra|w1Contro|
|00000c30| 6c 20 28 63 75 72 2d 3e | 53 6c 69 64 65 72 48 61 |l (cur->|SliderHa|
|00000c40| 6e 64 6c 65 29 3b 0d 09 | 53 65 74 57 46 6f 6e 74 |ndle);..|SetWFont|
|00000c50| 20 28 53 70 69 6e 6e 65 | 72 53 63 72 6f 6c 6c 29 | (Spinne|rScroll)|
|00000c60| 3b 0d 09 44 72 61 77 31 | 43 6f 6e 74 72 6f 6c 20 |;..Draw1|Control |
|00000c70| 28 63 75 72 2d 3e 53 70 | 69 6e 6e 65 72 48 61 6e |(cur->Sp|innerHan|
|00000c80| 64 6c 65 29 3b 0d 09 53 | 65 74 57 46 6f 6e 74 20 |dle);..S|etWFont |
|00000c90| 28 48 6f 72 69 7a 6f 6e | 74 61 6c 53 63 72 6f 6c |(Horizon|talScrol|
|00000ca0| 6c 29 3b 0d 09 44 72 61 | 77 31 43 6f 6e 74 72 6f |l);..Dra|w1Contro|
|00000cb0| 6c 20 28 63 75 72 2d 3e | 48 6f 72 69 7a 6f 6e 74 |l (cur->|Horizont|
|00000cc0| 61 6c 48 61 6e 64 6c 65 | 29 3b 0d 09 53 65 74 57 |alHandle|);..SetW|
|00000cd0| 46 6f 6e 74 20 28 50 69 | 63 74 53 6c 69 64 65 72 |Font (Pi|ctSlider|
|00000ce0| 53 63 72 6f 6c 6c 29 3b | 0d 09 44 72 61 77 31 43 |Scroll);|..Draw1C|
|00000cf0| 6f 6e 74 72 6f 6c 20 28 | 63 75 72 2d 3e 50 69 63 |ontrol (|cur->Pic|
|00000d00| 74 53 6c 69 64 65 72 48 | 61 6e 64 6c 65 29 3b 0d |tSliderH|andle);.|
|00000d10| 09 44 72 61 77 43 6c 69 | 70 70 65 64 47 72 6f 77 |.DrawCli|ppedGrow|
|00000d20| 20 28 2d 31 35 2c 20 2d | 31 35 29 3b 0d 7d 20 2f | (-15, -|15);.} /|
|00000d30| 2a 55 70 64 61 74 65 53 | 6c 69 64 65 72 73 2a 2f |*UpdateS|liders*/|
|00000d40| 0d 0d 2f 2a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2a 2f |../*----|------*/|
|00000d50| 0d 76 6f 69 64 20 41 63 | 74 69 76 61 74 65 53 6c |.void Ac|tivateSl|
|00000d60| 69 64 65 72 73 09 28 42 | 6f 6f 6c 65 61 6e 09 61 |iders.(B|oolean.a|
|00000d70| 63 74 69 76 61 74 65 29 | 0d 7b 0d 09 45 6e 61 62 |ctivate)|.{..Enab|
|00000d80| 6c 65 43 6f 6e 74 72 6f | 6c 20 28 63 75 72 2d 3e |leContro|l (cur->|
|00000d90| 56 65 72 74 69 63 61 6c | 48 61 6e 64 6c 65 2c 20 |Vertical|Handle, |
|00000da0| 61 63 74 69 76 61 74 65 | 29 3b 0d 09 45 6e 61 62 |activate|);..Enab|
|00000db0| 6c 65 43 6f 6e 74 72 6f | 6c 20 28 63 75 72 2d 3e |leContro|l (cur->|
|00000dc0| 53 6c 69 64 65 72 48 61 | 6e 64 6c 65 2c 20 61 63 |SliderHa|ndle, ac|
|00000dd0| 74 69 76 61 74 65 29 3b | 0d 09 45 6e 61 62 6c 65 |tivate);|..Enable|
|00000de0| 43 6f 6e 74 72 6f 6c 20 | 28 63 75 72 2d 3e 53 70 |Control |(cur->Sp|
|00000df0| 69 6e 6e 65 72 48 61 6e | 64 6c 65 2c 20 61 63 74 |innerHan|dle, act|
|00000e00| 69 76 61 74 65 29 3b 0d | 09 45 6e 61 62 6c 65 43 |ivate);.|.EnableC|
|00000e10| 6f 6e 74 72 6f 6c 20 28 | 63 75 72 2d 3e 48 6f 72 |ontrol (|cur->Hor|
|00000e20| 69 7a 6f 6e 74 61 6c 48 | 61 6e 64 6c 65 2c 20 61 |izontalH|andle, a|
|00000e30| 63 74 69 76 61 74 65 29 | 3b 0d 09 45 6e 61 62 6c |ctivate)|;..Enabl|
|00000e40| 65 43 6f 6e 74 72 6f 6c | 20 28 63 75 72 2d 3e 50 |eControl| (cur->P|
|00000e50| 69 63 74 53 6c 69 64 65 | 72 48 61 6e 64 6c 65 2c |ictSlide|rHandle,|
|00000e60| 20 61 63 74 69 76 61 74 | 65 29 3b 0d 0d 09 44 72 | activat|e);...Dr|
|00000e70| 61 77 43 6c 69 70 70 65 | 64 47 72 6f 77 20 28 2d |awClippe|dGrow (-|
|00000e80| 31 35 2c 20 2d 31 35 29 | 3b 0d 7d 20 2f 2a 41 63 |15, -15)|;.} /*Ac|
|00000e90| 74 69 76 61 74 65 53 6c | 69 64 65 72 73 2a 2f 0d |tivateSl|iders*/.|
|00000ea0| 0d 2f 2a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2a 2f 0d |./*-----|-----*/.|
|00000eb0| 76 6f 69 64 20 52 65 73 | 69 7a 65 53 6c 69 64 65 |void Res|izeSlide|
|00000ec0| 72 73 09 28 76 6f 69 64 | 29 0d 7b 0d 09 2f 2a 20 |rs.(void|).{../* |
|00000ed0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2d 73 70 65 63 |applicat|ion-spec|
|00000ee0| 69 66 69 63 20 63 6f 64 | 65 20 74 6f 20 72 65 73 |ific cod|e to res|
|00000ef0| 69 7a 65 20 69 74 65 6d | 73 20 69 6e 20 77 69 6e |ize item|s in win|
|00000f00| 64 6f 77 20 2a 2f 0d 7d | 20 2f 2a 52 65 73 69 7a |dow */.}| /*Resiz|
|00000f10| 65 53 6c 69 64 65 72 73 | 2a 2f 0d 0d 2f 2a 2d 2d |eSliders|*/../*--|
|00000f20| 2d 2d 2d 2d 2d 2d 2d 2d | 2a 2f 0d 70 61 73 63 61 |--------|*/.pasca|
|00000f30| 6c 20 76 6f 69 64 20 53 | 63 72 6f 6c 6c 53 6c 69 |l void S|crollSli|
|00000f40| 64 65 72 73 09 28 73 68 | 6f 72 74 09 09 6e 65 77 |ders.(sh|ort..new|
|00000f50| 56 61 6c 75 65 2c 0d 09 | 09 09 09 09 09 09 09 20 |Value,..|....... |
|00000f60| 73 68 6f 72 74 09 09 6f | 6c 64 56 61 6c 75 65 29 |short..o|ldValue)|
|00000f70| 0d 7b 0d 09 2f 2a 20 61 | 70 70 6c 69 63 61 74 69 |.{../* a|pplicati|
|00000f80| 6f 6e 2d 73 70 65 63 69 | 66 69 63 20 63 6f 64 65 |on-speci|fic code|
|00000f90| 20 74 6f 20 73 63 72 6f | 6c 6c 20 77 69 6e 64 6f | to scro|ll windo|
|00000fa0| 77 20 2a 2f 0d 09 69 66 | 20 28 67 57 68 69 63 68 |w */..if| (gWhich|
|00000fb0| 53 63 72 6f 6c 6c 20 3d | 3d 20 63 75 72 2d 3e 76 |Scroll =|= cur->v|
|00000fc0| 53 63 72 6f 6c 6c 29 20 | 7b 0d 09 7d 20 65 6c 73 |Scroll) |{..} els|
|00000fd0| 65 20 7b 09 2f 2f 20 68 | 6f 72 69 7a 6f 6e 74 61 |e {.// h|orizonta|
|00000fe0| 6c 0d 09 7d 0d 7d 20 2f | 2a 53 63 72 6f 6c 6c 53 |l..}.} /|*ScrollS|
|00000ff0| 6c 69 64 65 72 73 2a 2f | 0d 0d 2f 2a 20 53 6c 69 |liders*/|../* Sli|
|00001000| 64 65 72 73 20 2a 2f 0d | 00 00 00 00 00 00 00 00 |ders */.|........|
|00001010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001080| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00001090| 00 00 00 48 00 00 00 00 | 00 01 00 01 00 01 00 00 |...H....|........|
|000010a0| 64 00 00 01 76 39 f4 00 | 00 00 00 00 00 5b 28 80 |d...v9..|.....[(.|
|000010b0| 09 53 6c 69 64 65 72 73 | 2e 63 02 00 00 00 54 45 |.Sliders|.c....TE|
|000010c0| 58 54 43 57 49 45 00 00 | c8 83 c0 f6 00 00 00 00 |XTCWIE..|........|
|000010d0| 00 00 54 45 58 54 43 57 | 49 45 00 00 c8 83 c0 f6 |..TEXTCW|IE......|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 af c2 f8 1e 00 00 | 0f 88 00 00 01 1e ff ff |........|........|
|00001100| f8 7f ff ff f8 64 7f ff | ff f8 00 00 00 00 00 98 |.....d..|........|
|00001110| 80 1e 00 0a 00 02 00 18 | 00 1f 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 48 00 00 00 48 | 00 00 00 00 00 08 00 01 |...H...H|........|
|00001130| 00 08 00 00 00 00 01 76 | 37 28 00 00 00 00 00 00 |.......v|7(......|
|00001140| 00 08 00 00 00 ff 00 00 | ff ff ff ff ff ff 00 01 |........|........|
|00001150| ff ff ff ff cc cc 00 02 | ff ff ff ff 99 99 00 03 |........|........|
|00001160| ff ff ff ff 66 66 00 04 | ff ff 64 ff ff 33 33 00 |....ff..|..d..33.|
|00001170| 05 ff ff ff ff 00 00 00 | 06 ff ff cc cc ff ff 00 |........|........|
|00001180| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+